// import API.request from '@/utils/API.request'
import baseAPI from '@/api/base'

let API = new baseAPI('dop-szny-zlxlsvvue-admin')

// 查询操作日志列表
export function list(query) {
  return API.request({
    url: '/monitor/operlog/list',
    method: 'get',
    params: query
  })
}

// 删除操作日志
export function delOperlog(operId) {
  return API.request({
    url: '/monitor/operlog/' + operId,
    method: 'delete'
  })
}

// 清空操作日志
export function cleanOperlog() {
  return API.request({
    url: '/monitor/operlog/clean',
    method: 'delete'
  })
}
